import 'dart:collection';

import 'package:flutter/services.dart';
import 'package:meePet/platform/PluginCallBack.dart';
import 'package:meePet/utils/LogUtils.dart';

class PlatformPlugin {
  static getSMS(
      String phone, String geekRegisterDataJson, PluginCallBack callBack) {
    LogUtils.i("调用原生方法：sendSMSAfterCheck");
    const nativeMethod = MethodChannel('geeTest');
    HashMap<String, dynamic> map = HashMap();
    map["phone"] = phone;
    map["geekRegisterData"] = geekRegisterDataJson;
    var result = nativeMethod.invokeMethod("sendSMSAfterCheck", map);
    result.then((value) => {callBack.callback(value)});
  }
}
